Hi all,
First, sorry if I miss something and there is an existing feature that fits my needs (please let me know).
I want to get some resources via their API endpoints. When those resources support tags, I want to get them.
Unfortunately, the API design is not well suited for that purpose (famous N+1 request problem) . For example for users:
- call the “List Users” endpoint
- for each user call the “Get tags for entities” endpoint (note it’s more a " Get tags for entity")
You may add an option on “List Users” to include tags for each user.
Or provide an endpoint on the Tag resource to request all tags and their associated resources for a resource type (ie: get all tags for Users returns: tag A: {user Ua, user Ub}; tag B: {user Ua, user Uc})
Regards,
Sébastien